package com.vue.vuedemo.service.impl;

import com.vue.vuedemo.dao.PlayerMapper;
import com.vue.vuedemo.pojo.Player;
import com.vue.vuedemo.service.PlayerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("PlayerService")
public class PlayerServiceImpl implements PlayerService {

    @Resource
    PlayerMapper playerMapper;

    @Override
    public List<Player> findAll(Integer ptname) {
        return playerMapper.findAll(ptname);
    }

    @Override
    public void add(Player player) {
        playerMapper.add(player);
    }

    @Override
    public void del(Integer pid) {
        playerMapper.del(pid);
    }

    @Override
    public List<Player> playerFindAll() {
        return playerMapper.playerFindAll();
    }
}
